package org.spindle.soasuite.data.logic;


import java.lang.reflect.Field;

public class FieldParameter {

    private Field field;

    private String parameterName;

    private Boolean isList = false;

    public FieldParameter(Field field, String parameterName) {
        this.field = field;
        this.parameterName = parameterName;
        this.field.setAccessible(true);
    }

    public Boolean getList() {
        return isList;
    }

    public void setList(Boolean list) {
        isList = list;
    }

    public Field getField() {
        return field;
    }

    public void setField(Field field) {
        this.field = field;
    }

    public String getParameterName() {
        return parameterName;
    }

    public void setParameterName(String parameterName) {
        this.parameterName = parameterName;
    }

    @Override
    public String toString() {
        return "FieldParameter{" +
                "field=" + field +
                ", parameterName='" + parameterName + '\'' +
                ", isList=" + isList +
                '}';
    }
}
